package com.qfjy.mapper;


import com.qfjy.entity.MeetingPub;
import com.qfjy.entity.Publock;
import com.qfjy.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MeetingPubMapper {
    int deleteByPrimaryKey(String id);

    int insert(MeetingPub record);

    int insertSelective(MeetingPub record);

    MeetingPub selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(MeetingPub record);
     //阿龙傻屌
    int updateByPrimaryKey(MeetingPub record);
    //11111111111

    /**
     * 根据日期查询最大编号
     */
  @Select("select max(pcode) from meetingpub where pcode like '${time}%'")
   String selectMaxPcodeByPtime(String time);

  List<MeetingPub> selectMeetingPubList(String uid);

    /**
     * 可抢单列表，根据抢单人ID
     */
   List<MeetingPub> selectListMeetingGrabListByUid(String uid ,String pid);


    /**
     * 会议抢单者列表
     */
    List<User> selectUserListByPid(String pid);


    /**
     * 查询今天是否签到
     */
    Publock selectSignByDate(String today);
}